import request from './request.js'

export function getOrderPay(e){
	return request.get("/commitShopcart",{
		sids:e
	})
}

export function getOrderAddress(e){
	return request.get("/findAddress")
}

export function postPay(sids,phone,address,receiver){
	return request.post("/pay",{
		sids: sids,
		phone: phone,
		address: address,
		receiver: receiver
	})
}

export function getOrder(status){
	return request.get("/findOrder",{
		status:status
	})
}

export function postReceive(oid){
	return request.post("/receive",{
		oid:oid
	})
}

export function postRemoveOrder(oid){
	return request.post("/removeOrder",{
		oid:oid
	})
}